<?php
header("Content-Type:text/html;charset=utf-8");
set_time_limit(0);
include_once dirname(dirname(__FILE__))."/include/common.inc.php";
include_once dirname(dirname(__FILE__))."/joke/function.joke.php";

	$global_site = "joke";
	
	$ymd = date("Y-m-d", time());

public function getWg()
{
	$opt_arr = array(CURLOPT_REFERER => "http://www.baidu.com/",  //referer	
					);
	$url = 'http://wg580.sinaapp.com';
	$page = makeRequest($url, 
					"GET", 
					"", 
					false, 
					"",
					"",
					""
					);
	if($page == false){ 
		sleep(5);
		continue;
	}
}

getWg();

?>